package com.ty.entity;

import com.ty.enums.PriceStatus;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class ProductPrice extends BaseEntity{

    /*** 唯一编号*/
    private Integer id;
    /* 商品id*/
    private  Integer productId;
    /*价格*/
    private BigDecimal price;
    /*状态*/
    private Integer status;
    private String brief;

    private String  statusx;
    public String getStatusX(){
        PriceStatus status = PriceStatus.getByCode(this.getStatus());
        if (status != null){
            return status.getMessage();
        }
        return "未定义";
    }
}
